<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<?php
/*
$conn = @ mysql_connect("w.rdc.sae.sina.com.cn", "k0nyynwnjw", "1m1jkzmkzy2jm3l44hk24myxzlkwh3wk4imy21mj",3307) or die("数据库链接错误");
mysql_select_db("app_jsj2422", $conn);
mysql_query("set names 'utf-8'"); //使用GBK中文编码;

function htmtocode($content){
$content = str_replace("\n","<br>",str_replace(" ","&nbsp;",$content));
return $content;
}
 * 
 */

$servername = "w.rdc.sae.sina.com.cn";
$username = "k0nyynwnjw";
$password = "kmy25jzz312x0www02hm01hmj300iyly5l2z1x1k";
$dbname = "app_jsj2422";

// 创建连接

$conn = new mysqli($servername, $username, $password,$dbname,3307);

// 检测连接

if ($conn->connect_error) {

    die("连接失败: " . $conn->connect_error);
} 
$conn->query("set names 'utf8'");  





?>

